# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url

from cprt.approved import views
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$',views.list_approved),
    url(r'^do/(?P<schedule_id>\d+)$',views.do),
    url(r'^commit/(?P<schedule_id>\d+)$',views.do_commit),
    url(r'^do/(?P<schedule_id>\d+)/(?P<id>\d+)$',views.do2),
    url(r'^commit/(?P<schedule_id>\d+)/(?P<id>\d+)$',views.do_commit2),
    url(r'^unapprove$',views.list_unapprove),
    url(r'^list$',views.list_approved),
    url(r'^view/(?P<id>\d+)$',views.view),
    url(r'^dept/(?P<dept_id>\d+)$',views.my),
    url(r'^branch/(?P<dept_id>\d+)$',views.branch),
    url(r'^user/(?P<uid>\d+)$',views.view_by_user),
    url(r'^done$',views.list_done),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
